import type { Component } from "vue";

export const enum CustomGraphType {
	"断面" = "SWDM",
	"水库" = "SKMX",
	"水闸" = "SZ",
	"河道" = "HDYS",
	"区间" = "SWMX",
	"泵站" = "BZ",
	// 未使用
	"圩区" = "WQMX",
	"蓄水洪区" = "HQ",
	"文本" = "TEXT",
	"INFO" = "INFO"
}

export type BaseChartNodeData = {
	vue?: boolean;
	type?: CustomGraphType;
	config: { borderColor: string; boderWidth: number; hasMask: boolean };
};

/**
 * 蓄滞洪区
 */
export type HQNodeData = {
	config: { depth: number; color: string };
};

export type InfoNodeData = {
	setComponent: (cpn: Component) => void;
	template?: string;
	[key: string]: any;
} & BaseChartNodeData;
